package com.cy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HelloController
 * @Description:类描述
 * @Author Tedu
 * @Date 2021/6/15 15:04
 * @Version V1.0
 **/

@RestController
public class HelloController {

    @Value("${server.port}")
    private String port;

    @RequestMapping
    public String doSayHello(){
        return port+"sayHello";
    }
}
